package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TbDutyNewsgroup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_duty_newsgroup", catalog = "imcdbserver")
public class TbDutyNewsgroup implements java.io.Serializable {

	// Fields

	private TbDutyNewsgroupId id;

	// Constructors

	/** default constructor */
	public TbDutyNewsgroup() {
	}

	/** full constructor */
	public TbDutyNewsgroup(TbDutyNewsgroupId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "ngpId", column = @Column(name = "ngp_id", nullable = false)),
			@AttributeOverride(name = "udId", column = @Column(name = "ud_id", nullable = false)),
			@AttributeOverride(name = "groupopId", column = @Column(name = "groupop_id", nullable = false)) })
	public TbDutyNewsgroupId getId() {
		return this.id;
	}

	public void setId(TbDutyNewsgroupId id) {
		this.id = id;
	}

}